import request from '@/utils/request'
/**
 * 
 * 《 作业管理 》 页面接口文件
 *  
 */


//新增
export function addFireWork (data){
  return request({
    url: `/system/master`,
    method: 'post',
    data
  })
}

//修改
export function editFireWork (data){
  return request({
    url: `/system/master`,
    method: 'put',
    data
  })
}

//查询
export function searchFireWork (query){
  return request({
    url: `/system/master/list`,
    method: 'get',
    params: query
  })
}

//删除
export function deleteFireWork (ids){
  return request({
    url: `/system/master/${ids}`,
    method: 'delete',
  })
}

//详情
export function detailFireWork (id){
  return request({
    url: `/system/master/${id}`,
    method: 'get'
  })
}


//流程操作按钮
export function operateFireWork (data){
  return request({
    url: `/system/master/approval`,
    method: 'put',
    data
  })
}


//获取作业票号
export function getJobNumber (){
  return request({
    url: `/system/master/getAutoFlowCode`,
    method: 'get',
  })
}